package com.atguigu.crowd.service;

import atguigu.crowd.util.ResultEntity;

public interface RedisService {
    // 设置值，不设置过期时间
    ResultEntity<String> setRedisKeyValueRemote(String key, String value);

    // 设置值，设置过期时间
    ResultEntity<String> setRedisKeyValueRemoteWithTimeOut(String key, String value, Long time );
    // 得到键值
    ResultEntity<String> getRedisStringValueByKeyRemote(String key);

    // 删除键
    ResultEntity<String> removeRedisKeyRemote(String key);
}
